package cn.virens.common.boot.dubbo.consumer.converter;

import cn.virens.common.util.exception.APIException;
import org.dromara.hutool.core.convert.ConvertUtil;
import org.springframework.core.convert.converter.Converter;

import java.time.LocalTime;

public class LocalTimeConverter implements Converter<String, LocalTime> {

    @Override
    public LocalTime convert(String source) throws APIException {
        return ConvertUtil.convert(LocalTime.class, source);
    }
}
